package com.hulk.ratel.persistence.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author cmt
 * @since 2018-08-01
 */
@TableName("t_dict_code")
public class TDictCode extends Model<TDictCode> {

    private static final long serialVersionUID = 1L;

    @TableId("code_id")
    private String codeId;
    @TableField("dict_id")
    private String dictId;
    @TableField("code_value")
    private String codeValue;
    @TableField("code_desc")
    private String codeDesc;
    /**
     * Y-启用
            N-停用
     */
    @TableField("code_flag")
    private String codeFlag;
    private Integer priority;
    @TableField("input_by")
    private String inputBy;
    @TableField("input_time")
    private Date inputTime;
    @TableField("updated_by")
    private String updatedBy;
    @TableField("updated_time")
    private Date updatedTime;
    @TableField("tenant_id")
    private String tenantId;
    @TableField("lock_version")
    private Long lockVersion;
    private String rsv1;
    private String rsv2;


    public String getCodeId() {
        return codeId;
    }

    public void setCodeId(String codeId) {
        this.codeId = codeId;
    }

    public String getDictId() {
        return dictId;
    }

    public void setDictId(String dictId) {
        this.dictId = dictId;
    }

    public String getCodeValue() {
        return codeValue;
    }

    public void setCodeValue(String codeValue) {
        this.codeValue = codeValue;
    }

    public String getCodeDesc() {
        return codeDesc;
    }

    public void setCodeDesc(String codeDesc) {
        this.codeDesc = codeDesc;
    }

    public String getCodeFlag() {
        return codeFlag;
    }

    public void setCodeFlag(String codeFlag) {
        this.codeFlag = codeFlag;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public String getInputBy() {
        return inputBy;
    }

    public void setInputBy(String inputBy) {
        this.inputBy = inputBy;
    }

    public Date getInputTime() {
        return inputTime;
    }

    public void setInputTime(Date inputTime) {
        this.inputTime = inputTime;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public Long getLockVersion() {
        return lockVersion;
    }

    public void setLockVersion(Long lockVersion) {
        this.lockVersion = lockVersion;
    }

    public String getRsv1() {
        return rsv1;
    }

    public void setRsv1(String rsv1) {
        this.rsv1 = rsv1;
    }

    public String getRsv2() {
        return rsv2;
    }

    public void setRsv2(String rsv2) {
        this.rsv2 = rsv2;
    }

    @Override
    protected Serializable pkVal() {
        return this.codeId;
    }

    @Override
    public String toString() {
        return "TDictCode{" +
        ", codeId=" + codeId +
        ", dictId=" + dictId +
        ", codeValue=" + codeValue +
        ", codeDesc=" + codeDesc +
        ", codeFlag=" + codeFlag +
        ", priority=" + priority +
        ", inputBy=" + inputBy +
        ", inputTime=" + inputTime +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        ", tenantId=" + tenantId +
        ", lockVersion=" + lockVersion +
        ", rsv1=" + rsv1 +
        ", rsv2=" + rsv2 +
        "}";
    }
}
